﻿using S_Examine.Domains.Entity;
using System.Linq.Expressions;

namespace S_Examine.Infrastructure
{
	public interface IDapperRepository<T> where T : class, new()
	{
		Task<T> GetByIdAsync(int id, string sql);

		Task<T> GetByFuncAsync(Expression<Func<T, bool>> expre, string sql);

		Task<List<T>> GetAllAsync(string sql);

		Task<List<T>> GetAsync(Expression<Func<T, bool>> expre, string sql);
	}
}
